package com.xujiang.myblog.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Created by xujiang on 2017/4/20.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class Data {
    /**
     *
     * 注册的泛型是此数据模型
     * 参考 AccessToken
     *
     * */

    @JsonProperty("token")
    private String token;
    @JsonProperty("id")
    private String id;

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "Data{" +
                "token='" + token + '\'' +
                ", id='" + id + '\'' +
                '}';
    }
}
